<%@page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@include file="include.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="UTF-8" />
<title>聪聪工作室</title>
<script src="js/jquery.min.js"></script>
<script src="js/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-3d.js"></script>
</head>
<body>
<div id="container" style="width: 550px; height: 400px; margin: 0 auto"></div>
<script language="JavaScript">
$(document).ready(function() {  
   var chart = {      
      type: 'column',
      margin: 75,
      options3d: {
         enabled: true,
         alpha: 10,
         beta: 25,
         depth: 70
      }
   };
   var title = {
      text: '能耗总量'   
   };
   var subtitle = {
      text: 'From: <%=from%>  ------------ To:  <%=to%>'  
   };
   var xAxis = {
      categories: ['<%=cate1%>','<%=cate2%>', '<%=cate3%>', '<%=cate4%>', '<%=cate5%>', '<%=cate6%>']
   };
   var yAxis = {
      title: {
         text: null
      }
   };   
   var series= [{
      name: 'energy',
      data: [<%=data1%>, <%=data2%>, <%=data3%>, <%=data4%>, <%=data5%>, <%=data6%>]
   }];     
      
   var json = {};   
   json.chart = chart; 
   json.title = title;   
   json.subtitle = subtitle;    
   json.xAxis = xAxis; 
   json.yAxis = yAxis; 
   json.series = series;   
   $('#container').highcharts(json);
});
</script>
</body>
</html>
